<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //创建Symbol
        let s = Symbol();
        console.log(s, typeof s);

        let s2 = Symbol('尚硅谷');
        let s3 = Symbol('尚硅谷');
        console.log(s2 === s3);

        //symbol.for创建
        let s4 = Symbol.for('尚硅谷');
        let s5 = Symbol.for('尚硅谷');
        console.log(s4 === s5);
        console.log(s4, typeof s4);

        //不能与其它运算符进行运算
        // let result = s + 100;


       //数据类型总结：
       //USONB  you are so niubility
       //u undefined
       //s string symbol
       //o object
       //n null number 
       //b boolean
    </script>
</body>

</html>